package com.example.minemodule.model;

import com.example.minemodule.entity.MyDoctorBean;
import com.yilijk.base.base.BaseModel;
import com.yilijk.base.network.RequestParams;
import com.yilijk.base.network.https.HttpCallBack;
import com.yilijk.base.network.https.HttpUtils;

import java.lang.reflect.Parameter;

/**
 * Created by SHICHENG
 * <p>
 * Time on
 */
public class MyDoctorModel extends BaseModel {


    String mydoctorlist = "/ihospital-patient/ipatient/myDoctor/list";
    public void getMydoctorList(int pageIndex, int pageSize, HttpCallBack<MyDoctorBean> httpCallBack){
        RequestParams params = new RequestParams();
        params.put("pageIndex",pageIndex);
        params.put("pageSize",pageSize);
        HttpUtils.get(mydoctorlist,params,httpCallBack);
    }

    String modifySort = "/ihospital-patient/ipatient/myDoctor/modifySort";
    public void getModifySort(int oldP,int newP,long doctorId,HttpCallBack<String> httpCallBack){
        RequestParams params = new RequestParams();
        params.put("oldSite",oldP+1);
        params.put("newSite",newP+1);
        params.put("doctorId",doctorId);
        HttpUtils.get(modifySort,params,httpCallBack);
    }

    String hidden = "/ihospital-patient/ipatient/myDoctor/hidden";
    public void hiddenDoctor(long doctorId,HttpCallBack<String> httpCallBack){
        RequestParams params = new RequestParams();
        params.put("doctorId",doctorId);
        HttpUtils.get(hidden,params,httpCallBack);
    }

    String show = "/ihospital-patient/ipatient/myDoctor/show";
    public void showDoctor(long doctorId,HttpCallBack<String> httpCallBack){
        RequestParams params = new RequestParams();
        params.put("doctorId",doctorId);
        HttpUtils.get(show,params,httpCallBack);
    }
}
